package com.brick.service;

import com.brick.entity.OrderDetail;
import com.brick.mapper.OrderDetailMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class OrderDetailService {
    @Autowired
    OrderDetailMapper orderDetailMapper;

    public List<OrderDetail> selectAll(OrderDetail orderDetail){
        return orderDetailMapper.selectAll(orderDetail);
    }

    public int insert(OrderDetail orderDetail){
        return orderDetailMapper.insert(orderDetail);
    }

    public int update(OrderDetail orderDetail){
        return orderDetailMapper.update(orderDetail);
    }
}
